import { ParamsConst } from "./ParamsConst";
//class PathConst

export class PathConst {
  public static get mainPath(): string {
    return PathConst._mainPath;
  }

  public static set mainPath(arg1: string) {
    PathConst._mainPath = arg1;
    PathConst.createRoleUrl =
      PathConst._mainPath +
      ParamsConst.instance.createRoleUrl +
      "?" +
      ParamsConst.instance.createRoleVersion;
    PathConst.gameUrl = PathConst._mainPath + ParamsConst.instance.gameUrl;
    PathConst.configUrl = PathConst._mainPath + ParamsConst.instance.configUrl;
    PathConst.mapPath = PathConst._mainPath + PathConst.mapLocalPath;
    PathConst.modelPath = PathConst._mainPath + "assets/models/";
    return;
  }

  private static /* var */ _mainPath: string = "";

  public static /* var */ configUrl: string = "";

  public static /* var */ createRoleUrl: string;

  public static /* var */ gameUrl: string;

  public static /* var */ mapPath: string;

  public static /* var */ modelPath: string;

  public static /* var */ mapLocalPath: string = "otherRes/maps/";

  public static /* var */ headImagePath: string = "../user_image/";

  public static /* var */ isPay: boolean = true;
}
